package com.example.chinese;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class Star_8 extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity8);
        Button bt17=(Button)findViewById(R.id.bt17);
        Button bt18=(Button)findViewById(R.id.bt18);
        bt17.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name9","退赛:失去舞台");
                editor.commit();
                Intent intent17=new Intent(Star_8.this,Star_19.class);
                startActivity(intent17);
            }
        });

        bt18.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name9","沉默硬挺,决赛前对支持你的人回复质疑");
                editor.commit();
                Intent intent18=new Intent();
                intent18.setClass(Star_8.this,Star_9.class);
                startActivity(intent18);
            }
        });;
    }
}
